<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>消息中心 - 贵州四季康养文旅</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tdesign-icons-vue-next/dist/index.min.css">
    <style>
        body {
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background-color: #f0f2f5;
            color: #333;
            overflow-x: hidden;
            padding-bottom: 60px;
        }
        .header {
            background-color: #0052d9;
            color: white;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 10;
        }
        .bottom-nav {
            border-top: 1px solid #eee;
            background: white;
            padding: 8px 0;
            position: fixed;
            bottom: 0;
            width: 100%;
            display: flex;
            justify-content: space-around;
        }
        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 12px;
            color: #666;
        }
        .bottom-nav-item.active {
            color: #0052d9;
        }
        .message-item {
            border-bottom: 1px solid #f0f0f0;
            transition: all 0.3s;
        }
        .message-item:active {
            background-color: #f9f9f9;
        }
        .badge {
            position: absolute;
            top: 0;
            right: 0;
            background-color: #ff4d4f;
            color: white;
            border-radius: 10px;
            font-size: 10px;
            min-width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: translate(50%, -50%);
        }
        .tab-badge {
            position: absolute;
            top: 0;
            right: 30%;
            background-color: #ff4d4f;
            color: white;
            border-radius: 10px;
            font-size: 10px;
            min-width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .segment {
            display: flex;
            background-color: white;
            border-radius: 12px;
            padding: 4px;
            margin: 16px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }
        .segment-item {
            flex: 1;
            text-align: center;
            padding: 8px 0;
            font-size: 14px;
            border-radius: 8px;
        }
        .segment-item.active {
            background-color: #0052d9;
            color: white;
        }
        .message-card {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            background: white;
            margin: 16px;
        }
        .chat-container {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            background: white;
            margin: 16px;
        }
        .search-bar {
            background-color: white;
            border-radius: 20px;
            padding: 8px 12px;
            display: flex;
            align-items: center;
            margin: 16px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        }
        .search-bar input {
            background: transparent;
            border: none;
            width: 100%;
            outline: none;
            font-size: 14px;
            margin-left: 8px;
        }
        .filter-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            margin-bottom: 12px;
        }
        .filter-item {
            display: flex;
            align-items: center;
            font-size: 12px;
            color: #666;
        }
        .filter-item i {
            margin-right: 4px;
        }
        .quick-reply {
            display: flex;
            overflow-x: auto;
            padding: 8px 0;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
            margin-bottom: 8px;
        }
        .quick-reply-item {
            background-color: #f0f5ff;
            color: #0052d9;
            border-radius: 16px;
            padding: 6px 12px;
            font-size: 12px;
            margin-right: 8px;
            flex-shrink: 0;
        }
        .quick-reply-item:first-child {
            margin-left: 16px;
        }
        .quick-reply-item:last-child {
            margin-right: 16px;
        }
        .shared-product {
            background-color: #f9f9f9;
            border-radius: 8px;
            padding: 8px;
            display: flex;
            align-items: center;
            margin-top: 8px;
            margin-bottom: 8px;
        }
        .shared-product img {
            width: 40px;
            height: 40px;
            object-fit: cover;
            border-radius: 4px;
            margin-right: 8px;
        }
        .floating-button {
            position: fixed;
            bottom: 75px;
            right: 20px;
            width: 48px;
            height: 48px;
            background-color: #0052d9;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            z-index: 10;
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <div class="header py-4 px-4 flex justify-between items-center">
        <h1 class="text-xl font-bold text-center flex-1">消息中心</h1>
        <div class="flex items-center">
            <i class="t-icon t-icon-setting text-white mr-4"></i>
            <i class="t-icon t-icon-help-circle text-white"></i>
        </div>
    </div>

    <div class="pt-14 pb-16">
        <!-- 搜索栏 -->
        <div class="search-bar">
            <i class="t-icon t-icon-search text-gray-400"></i>
            <input type="text" placeholder="搜索消息内容、联系人...">
        </div>
        
        <!-- 分段控制器 -->
        <div class="segment">
            <div class="segment-item active">全部</div>
            <div class="segment-item">系统通知</div>
            <div class="segment-item">订单消息</div>
            <div class="segment-item">商家沟通</div>
        </div>

        <!-- 过滤栏 -->
        <div class="filter-bar">
            <div class="filter-item">
                <i class="t-icon t-icon-filter"></i>
                <span>筛选</span>
            </div>
            <div class="filter-item">
                <i class="t-icon t-icon-time"></i>
                <span>最近7天</span>
            </div>
            <div class="filter-item">
                <i class="t-icon t-icon-check-circle"></i>
                <span>只看未读</span>
            </div>
        </div>

        <!-- 消息列表 -->
        <div class="message-card">
            <!-- 系统通知 -->
            <div class="message-item p-4 flex items-center">
                <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mr-4 relative">
                    <i class="t-icon t-icon-info-circle text-blue-500 text-xl"></i>
                    <span class="badge">2</span>
                </div>
                <div class="flex-1">
                    <div class="flex justify-between items-start">
                        <h3 class="font-medium text-base">系统通知</h3>
                        <span class="text-xs text-gray-400">10:30</span>
                    </div>
                    <p class="text-sm text-gray-500 mt-1 line-clamp-1">您的账号已完成实名认证，可以使用全部功能啦！</p>
                </div>
            </div>

            <!-- 订单消息 -->
            <div class="message-item p-4 flex items-center">
                <div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mr-4 relative">
                    <i class="t-icon t-icon-shop text-green-500 text-xl"></i>
                    <span class="badge">1</span>
                </div>
                <div class="flex-1">
                    <div class="flex justify-between items-start">
                        <h3 class="font-medium text-base">订单消息</h3>
                        <span class="text-xs text-gray-400">昨天</span>
                    </div>
                    <p class="text-sm text-gray-500 mt-1 line-clamp-1">您的订单 #20230615001 已发货，请注意查收！</p>
                </div>
            </div>

            <!-- 商家消息 -->
            <div class="message-item p-4 flex items-center">
                <div class="w-12 h-12 rounded-full mr-4 overflow-hidden">
                    <img src="https://via.placeholder.com/100?text=商家" alt="商家头像" class="w-full h-full object-cover">
                </div>
                <div class="flex-1">
                    <div class="flex justify-between items-start">
                        <h3 class="font-medium text-base">贵州特产专卖店</h3>
                        <span class="text-xs text-gray-400">3天前</span>
                    </div>
                    <p class="text-sm text-gray-500 mt-1 line-clamp-1">您好，您购买的辣椒酱已经准备好了，请问什么时候方便发货？</p>
                </div>
            </div>

            <!-- 商家消息 -->
            <div class="message-item p-4 flex items-center">
                <div class="w-12 h-12 rounded-full mr-4 overflow-hidden">
                    <img src="https://via.placeholder.com/100?text=酒店" alt="商家头像" class="w-full h-full object-cover">
                </div>
                <div class="flex-1">
                    <div class="flex justify-between items-start">
                        <h3 class="font-medium text-base">镇远古城客栈</h3>
                        <span class="text-xs text-gray-400">5天前</span>
                    </div>
                    <p class="text-sm text-gray-500 mt-1 line-clamp-1">尊敬的客人，感谢您的预订，您的房间已准备就绪，期待您的到来！</p>
                </div>
            </div>

            <!-- 活动通知 -->
            <div class="message-item p-4 flex items-center">
                <div class="w-12 h-12 bg-yellow-100 rounded-full flex items-center justify-center mr-4">
                    <i class="t-icon t-icon-notification text-yellow-500 text-xl"></i>
                </div>
                <div class="flex-1">
                    <div class="flex justify-between items-start">
                        <h3 class="font-medium text-base">活动通知</h3>
                        <span class="text-xs text-gray-400">一周前</span>
                    </div>
                    <p class="text-sm text-gray-500 mt-1 line-clamp-1">春季樱花节即将开始，点击查看活动详情！</p>
                </div>
            </div>
        </div>

        <!-- 聊天示例界面 -->
        <div class="chat-container">
            <div class="p-4 border-b border-gray-100 flex justify-between items-center">
                <div>
                    <h2 class="text-lg font-medium">贵州特产专卖店</h2>
                    <p class="text-sm text-gray-500 mt-1">在线 · 2分钟前活跃</p>
                </div>
                <div class="flex items-center">
                    <i class="t-icon t-icon-call mr-4 text-gray-500"></i>
                    <i class="t-icon t-icon-more text-gray-500"></i>
                </div>
            </div>
            <div class="p-4 bg-gray-50">
                <!-- 商家消息 -->
                <div class="flex mb-4">
                    <div class="w-8 h-8 rounded-full overflow-hidden mr-2">
                        <img src="https://via.placeholder.com/100?text=商家" alt="商家头像" class="w-full h-full object-cover">
                    </div>
                    <div class="bg-white p-3 rounded-lg max-w-xs">
                        <p class="text-sm">您好，请问有什么可以帮到您的？</p>
                        <span class="text-xs text-gray-400 mt-1 block">10:30</span>
                    </div>
                </div>
                
                <!-- 用户消息 -->
                <div class="flex justify-end mb-4">
                    <div class="bg-blue-500 p-3 rounded-lg max-w-xs">
                        <p class="text-sm text-white">您好，我想咨询一下我预订的平坝樱花园门票是否可以改期？</p>
                        <span class="text-xs text-blue-200 mt-1 block">10:31</span>
                    </div>
                    <div class="w-8 h-8 rounded-full overflow-hidden ml-2">
                        <img src="https://via.placeholder.com/100?text=我" alt="用户头像" class="w-full h-full object-cover">
                    </div>
                </div>
                
                <!-- 商家消息 -->
                <div class="flex mb-4">
                    <div class="w-8 h-8 rounded-full overflow-hidden mr-2">
                        <img src="https://via.placeholder.com/100?text=商家" alt="商家头像" class="w-full h-full object-cover">
                    </div>
                    <div class="bg-white p-3 rounded-lg max-w-xs">
                        <p class="text-sm">可以的，请您提供订单号，我帮您查询一下具体情况。</p>
                        <span class="text-xs text-gray-400 mt-1 block">10:32</span>
                    </div>
                </div>
                
                <!-- 用户分享订单 -->
                <div class="flex justify-end mb-4">
                    <div class="bg-blue-500 p-3 rounded-lg max-w-xs">
                        <p class="text-sm text-white">这是我的订单信息</p>
                        <div class="shared-product bg-blue-600">
                            <img src="https://images.unsplash.com/photo-1567331711402-509c12c41959" alt="平坝樱花园">
                            <div class="flex-1">
                                <h4 class="text-xs text-white font-medium">平坝樱花园门票</h4>
                                <p class="text-xs text-blue-200">订单号: #20230620002</p>
                            </div>
                        </div>
                        <span class="text-xs text-blue-200 mt-1 block">10:33</span>
                    </div>
                    <div class="w-8 h-8 rounded-full overflow-hidden ml-2">
                        <img src="https://via.placeholder.com/100?text=我" alt="用户头像" class="w-full h-full object-cover">
                    </div>
                </div>
                
                <!-- 商家消息 -->
                <div class="flex mb-4">
                    <div class="w-8 h-8 rounded-full overflow-hidden mr-2">
                        <img src="https://via.placeholder.com/100?text=商家" alt="商家头像" class="w-full h-full object-cover">
                    </div>
                    <div class="bg-white p-3 rounded-lg max-w-xs">
                        <p class="text-sm">已查询到您的订单，您想改期到什么时候呢？</p>
                        <span class="text-xs text-gray-400 mt-1 block">10:34</span>
                    </div>
                </div>
                
                <!-- 商家分享商品 -->
                <div class="flex mb-4">
                    <div class="w-8 h-8 rounded-full overflow-hidden mr-2">
                        <img src="https://via.placeholder.com/100?text=商家" alt="商家头像" class="w-full h-full object-cover">
                    </div>
                    <div class="bg-white p-3 rounded-lg max-w-xs">
                        <p class="text-sm">另外，我们还有樱花季特别套餐，包含门票和特色小吃，您可以考虑一下：</p>
                        <div class="shared-product">
                            <img src="https://images.unsplash.com/photo-1567331711402-509c12c41959" alt="樱花套餐">
                            <div class="flex-1">
                                <h4 class="text-xs font-medium">樱花季特别套餐</h4>
                                <p class="text-xs text-red-500">¥98/人</p>
                            </div>
                        </div>
                        <span class="text-xs text-gray-400 mt-1 block">10:35</span>
                    </div>
                </div>
            </div>
            <!-- 快捷回复 -->
            <div class="quick-reply border-t border-gray-100">
                <div class="quick-reply-item">下次再来</div>
                <div class="quick-reply-item">谢谢，很满意</div>
                <div class="quick-reply-item">能便宜一点吗</div>
                <div class="quick-reply-item">什么时候能到</div>
                <div class="quick-reply-item">详细信息</div>
                <div class="quick-reply-item">有其他款式吗</div>
            </div>
            <!-- 输入框 -->
            <div class="p-3 flex items-center border-t border-gray-100">
                <i class="t-icon t-icon-emoji text-gray-400 text-xl mr-2"></i>
                <i class="t-icon t-icon-image text-gray-400 text-xl mr-2"></i>
                <div class="flex-1 bg-gray-100 rounded-full py-2 px-4 mr-2">
                    <span class="text-gray-400">输入消息...</span>
                </div>
                <button class="bg-blue-500 text-white rounded-full w-8 h-8 flex items-center justify-center">
                    <i class="t-icon t-icon-arrow-up text-sm"></i>
                </button>
            </div>
        </div>
    </div>

    <!-- 消息设置浮动按钮 -->
    <div class="floating-button">
        <i class="t-icon t-icon-setting"></i>
    </div>

    <!-- 底部导航栏 -->
    <div class="bottom-nav">
        <div class="bottom-nav-item">
            <i class="t-icon t-icon-home"></i>
            <span>首页</span>
        </div>
        <div class="bottom-nav-item">
            <i class="t-icon t-icon-browse"></i>
            <span>发现</span>
        </div>
        <div class="bottom-nav-item active relative">
            <i class="t-icon t-icon-chat"></i>
            <span>消息</span>
            <span class="tab-badge">3</span>
        </div>
        <div class="bottom-nav-item">
            <i class="t-icon t-icon-user"></i>
            <span>我的</span>
        </div>
    </div>
</body>
</html> 